package com.wang.home.service.impl;

import com.wang.home.entity.Student;
import com.wang.home.entity.vo.StudentRoleVo;
import com.wang.home.mapper.StudentMapper;
import com.wang.home.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author wang
 * @since 2021-04-30
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student getStudentByName(String studentName) {
        return studentMapper.getStudentByName(studentName);
    }

    @Override
    public List<StudentRoleVo> findStudents() {
        return studentMapper.findStudents();
    }
}
